package com.new_wear.project.system.taskdo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 系统 - 任务指派对象 cst_task_do
 * 
 * @author new_wear
 * @date 2020-01-09
 */
public class CstTaskDo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Integer id;

    /** 父ID */
    @Excel(name = "父ID")
    private Integer pid;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Integer tid;

    /** 层级，1所，2站。 */
    @Excel(name = "层级，1所，2站。")
    private Integer level;

    /** 是否完成。0未完成，1 已反馈，2，已完成 */
    @Excel(name = "是否完成。0未完成，1 已反馈，2，已完成")
    private Integer status;

    /** 完成数量,只有level为1时有效 */
    @Excel(name = "完成数量,只有level为1时有效")
    private Integer finishNum;

    /** 发布数量 */
    @Excel(name = "发布数量")
    private Integer num;

    /** 地区ID */
    @Excel(name = "地区ID")
    private Integer areaId;

    /** 完成时间 */
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 完成者ID */
    @Excel(name = "完成者ID")
    private Integer doId;

    /** 完成者 */
    @Excel(name = "完成者")
    private String doName;


    private String deptName;//前端展示字段。地区名称
    private String tName;//任务名称

    public String gettName() {
        return this.tName;

    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getDeptName() {
        return this.deptName;

    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPid(Integer pid) 
    {
        this.pid = pid;
    }

    public Integer getPid() 
    {
        return pid;
    }
    public void setTid(Integer tid) 
    {
        this.tid = tid;
    }

    public Integer getTid() 
    {
        return tid;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setFinishNum(Integer finishNum) 
    {
        this.finishNum = finishNum;
    }

    public Integer getFinishNum() 
    {
        return finishNum;
    }
    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setDoId(Integer doId) 
    {
        this.doId = doId;
    }

    public Integer getDoId() 
    {
        return doId;
    }
    public void setDoName(String doName) 
    {
        this.doName = doName;
    }

    public String getDoName() 
    {
        return doName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("tid", getTid())
            .append("level", getLevel())
            .append("status", getStatus())
            .append("finishNum", getFinishNum())
            .append("num", getNum())
            .append("areaId", getAreaId())
            .append("finishTime", getFinishTime())
            .append("doId", getDoId())
            .append("doName", getDoName())
            .toString();
    }
}
